package com.mondo.financialwallet.data.entity;

import java.io.Serializable;
import java.util.List;

public class ProductDetailsEntity extends BasisResponseEntity {


    private List<DataBean> data;

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Serializable {
        /**
         * id : 24
         * name : 1
         * content :
         * cate_id : 6
         * series_id : 11
         * company_id : 9
         * trade_id : 20
         * advantage_id : 10
         * goods_type : 0
         * limit_money : 100.00
         * goods_image : http://admin.xblockbank.com/static/upload/d3d82e5cf0a0a41c/9d26ab4ad4bec259.png
         * goods_content : 1
         * type_name : 活期
         * cates : 平台积分Crowdsale
         * series : 天马座
         * companys : XBlockbnak
         * trades : {"id":20,"entrust_period":0,"subscribe_fee":"0.00","manage_fee":"0.00","redeem_fee":"0.00","profit_rule_desc":"2","redeem_time_desc":"2","transfer_day":0,"close_day":0,"transfer_day_desc":"T+0","entrust_period_desc":"0Day"}
         * advantages : {"id":10,"goods_feature":"测试","fund_invest":"测试","investment_strategy":"测试","exclusive_privilege":"测试"}
         */

        private int id;
        private String name;
        private String content;
        private int cate_id;
        private int series_id;
        private int company_id;
        private int trade_id;
        private int advantage_id;
        private int goods_type;
        private String limit_money;
        private String goods_image;
        private String goods_content;
        private String type_name;
        private String cates;
        private String series;
        private String companys;
        private TradesBean trades;
        private AdvantagesBean advantages;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public int getCate_id() {
            return cate_id;
        }

        public void setCate_id(int cate_id) {
            this.cate_id = cate_id;
        }

        public int getSeries_id() {
            return series_id;
        }

        public void setSeries_id(int series_id) {
            this.series_id = series_id;
        }

        public int getCompany_id() {
            return company_id;
        }

        public void setCompany_id(int company_id) {
            this.company_id = company_id;
        }

        public int getTrade_id() {
            return trade_id;
        }

        public void setTrade_id(int trade_id) {
            this.trade_id = trade_id;
        }

        public int getAdvantage_id() {
            return advantage_id;
        }

        public void setAdvantage_id(int advantage_id) {
            this.advantage_id = advantage_id;
        }

        public int getGoods_type() {
            return goods_type;
        }

        public void setGoods_type(int goods_type) {
            this.goods_type = goods_type;
        }

        public String getLimit_money() {
            return limit_money;
        }

        public void setLimit_money(String limit_money) {
            this.limit_money = limit_money;
        }

        public String getGoods_image() {
            return goods_image;
        }

        public void setGoods_image(String goods_image) {
            this.goods_image = goods_image;
        }

        public String getGoods_content() {
            return goods_content;
        }

        public void setGoods_content(String goods_content) {
            this.goods_content = goods_content;
        }

        public String getType_name() {
            return type_name;
        }

        public void setType_name(String type_name) {
            this.type_name = type_name;
        }

        public String getCates() {
            return cates;
        }

        public void setCates(String cates) {
            this.cates = cates;
        }

        public String getSeries() {
            return series;
        }

        public void setSeries(String series) {
            this.series = series;
        }

        public String getCompanys() {
            return companys;
        }

        public void setCompanys(String companys) {
            this.companys = companys;
        }

        public TradesBean getTrades() {
            return trades;
        }

        public void setTrades(TradesBean trades) {
            this.trades = trades;
        }

        public AdvantagesBean getAdvantages() {
            return advantages;
        }

        public void setAdvantages(AdvantagesBean advantages) {
            this.advantages = advantages;
        }

        public static class TradesBean implements Serializable {
            /**
             * id : 20
             * entrust_period : 0
             * subscribe_fee : 0.00
             * manage_fee : 0.00
             * redeem_fee : 0.00
             * profit_rule_desc : 2
             * redeem_time_desc : 2
             * transfer_day : 0
             * close_day : 0
             * transfer_day_desc : T+0
             * entrust_period_desc : 0Day
             */

            private int id;
            private int entrust_period;
            private String subscribe_fee;
            private String manage_fee;
            private String redeem_fee;
            private String profit_rule_desc;
            private String redeem_time_desc;
            private int transfer_day;
            private int close_day;
            private String transfer_day_desc;
            private String entrust_period_desc;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getEntrust_period() {
                return entrust_period;
            }

            public void setEntrust_period(int entrust_period) {
                this.entrust_period = entrust_period;
            }

            public String getSubscribe_fee() {
                if (manage_fee == null){
                    return "0";
                }

                return String.valueOf(((int)Double.parseDouble(subscribe_fee)));
            }

            public void setSubscribe_fee(String subscribe_fee) {
                this.subscribe_fee = subscribe_fee;
            }

            public String getManage_fee() {
                if (manage_fee == null){
                    return "0";
                }

                return String.valueOf(((int)Double.parseDouble(manage_fee)));
            }

            public void setManage_fee(String manage_fee) {
                this.manage_fee = manage_fee;
            }

            public String getRedeem_fee() {
                return redeem_fee;
            }

            public void setRedeem_fee(String redeem_fee) {
                this.redeem_fee = redeem_fee;
            }

            public String getProfit_rule_desc() {
                return profit_rule_desc;
            }

            public void setProfit_rule_desc(String profit_rule_desc) {
                this.profit_rule_desc = profit_rule_desc;
            }

            public String getRedeem_time_desc() {
                return redeem_time_desc;
            }

            public void setRedeem_time_desc(String redeem_time_desc) {
                this.redeem_time_desc = redeem_time_desc;
            }

            public int getTransfer_day() {
                return transfer_day;
            }

            public void setTransfer_day(int transfer_day) {
                this.transfer_day = transfer_day;
            }

            public int getClose_day() {
                return close_day;
            }

            public void setClose_day(int close_day) {
                this.close_day = close_day;
            }

            public String getTransfer_day_desc() {
                return transfer_day_desc;
            }

            public void setTransfer_day_desc(String transfer_day_desc) {
                this.transfer_day_desc = transfer_day_desc;
            }

            public String getEntrust_period_desc() {
                return entrust_period_desc;
            }

            public void setEntrust_period_desc(String entrust_period_desc) {
                this.entrust_period_desc = entrust_period_desc;
            }
        }

        public static class AdvantagesBean implements Serializable {
            /**
             * id : 10
             * goods_feature : 测试
             * fund_invest : 测试
             * investment_strategy : 测试
             * exclusive_privilege : 测试
             */

            private int id;
            private String goods_feature;
            private String fund_invest;
            private String investment_strategy;
            private String exclusive_privilege;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getGoods_feature() {
                return goods_feature;
            }

            public void setGoods_feature(String goods_feature) {
                this.goods_feature = goods_feature;
            }

            public String getFund_invest() {
                return fund_invest;
            }

            public void setFund_invest(String fund_invest) {
                this.fund_invest = fund_invest;
            }

            public String getInvestment_strategy() {
                return investment_strategy;
            }

            public void setInvestment_strategy(String investment_strategy) {
                this.investment_strategy = investment_strategy;
            }

            public String getExclusive_privilege() {
                return exclusive_privilege;
            }

            public void setExclusive_privilege(String exclusive_privilege) {
                this.exclusive_privilege = exclusive_privilege;
            }
        }
    }
}
